<template>
   <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="综合排序" name="first"></el-tab-pane>
      <el-tab-pane label="按最新" name="second"></el-tab-pane>
      <el-tab-pane label="按最旧" name="third"></el-tab-pane>
    </el-tabs>
</template>

<script>
export default {
    data() {
        return {
          activeName: 'second'
        };
      },
      methods: {
        handleClick(tab, event) {
          console.log(tab, event);
        }
      }
}
</script>

<style>

</style>
